package com.aspira.service.userservice;

import com.aspira.entity.User;
import com.aspira.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserRepository userRepository;
    
    public User save(User user) {

        User save = (User) userRepository.save(user);
        return save;
    }
}
